<div class="headerbar" th:fragment="top">

    <a class="menutoggle"><i class="fa fa-bars"></i></a>

    <!--<form class="searchform" action="index.html" method="post">-->
        <!--<input type="text" class="form-control" name="keyword" placeholder="搜索" />-->
    <!--</form>-->

    <div class="header-right">
        <ul class="headermenu">
            <!--<li>-->
                <!--<div class="btn-group">-->
                    <!--<button class="btn btn-default dropdown-toggle tp-icon" data-toggle="dropdown">-->
                        <!--<i class="glyphicon glyphicon-user"></i>-->
                        <!--<span class="badge">2</span>-->
                    <!--</button>-->

                <!--</div>-->
            <!--</li>-->
            <!--<li>-->
                <!--<div class="btn-group">-->
                    <!--<button class="btn btn-default dropdown-toggle tp-icon" data-toggle="dropdown">-->
                        <!--<i class="glyphicon glyphicon-envelope"></i>-->
                        <!--<span class="badge">1</span>-->
                    <!--</button>-->

                <!--</div>-->
            <!--</li>-->

            <li>
                <div class="btn-group">
                    <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                        <img src="images/user.png" alt="" />
                        <span th:text="${user.username}"></span>
                        <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                        <!--<li><a href="profile.html"><i class="glyphicon glyphicon-user"></i> My Profile</a></li>-->
                        <!--<li><a href="#"><i class="glyphicon glyphicon-cog"></i> Account Settings</a></li>-->
                        <!--<li><a href="#"><i class="glyphicon glyphicon-question-sign"></i> Help</a></li>-->
                        <!--<li><a href="signin.html"><i class="glyphicon glyphicon-log-out"></i> Log Out</a></li>-->
                            <li class="ht_yjtc">
                                <a href="javascript:document.loginoutfrm.submit();">
                                    <i class="glyphicon glyphicon-log-out" style="display: block;float: left"></i>
                                    <form action="#" th:action="@{/logout}" method="post"  name = "loginoutfrm">
                                    <!--type="submit"-->
                                        <button style="border: none;background: none;color: #959AA0;padding: 0"   value="退出系统">退出系统</button>
                                    </form>
                                </a>
                            </li>
                    </ul>
                </div>
            </li>
        </ul>
    </div><!-- header-right -->

</div><!-- headerbar -->